
include camlimages-2.2.0/Makefile.config

MYINCFLAGS=-I +lablgtk2 $(COMPFLAGS_CAMLIMAGES)
MYLINKFLAGS=$(LINKFLAGS_CAMLIMAGES) lablgtk.cma gtkInit.cmo

all :
	ocamlc -c common.ml
	ocamlc $(MYINCFLAGS) -c gui.ml
	ocamlc $(MYINCFLAGS) -c gameabstract.ml
	ocamlc -c ai.ml
	ocamlc $(MYINCFLAGS) -c checkers.ml
	ocamlc $(MYINCFLAGS) -c breaktrough.ml
	ocamlc $(MYINCFLAGS) -c $(MYLINKFLAGS) main.ml
	ocamlc $(MYINCFLAGS) -o ocaml-checkers $(MYLINKFLAGS) common.cmo gui.cmo ai.cmo gameabstract.cmo breaktrough.cmo checkers.cmo main.cmo 

clean:
	rm ocaml-checkers
	rm *.cmo *.cmi 

#	ocamlc -I +lablgtk2 $(COMPFLAGS_CAMLIMAGES) -o ocaml-checkers $(LINKFLAGS_CAMLIMAGES) lablgtk.cma gtkInit.cmo gui.ml


